<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // window.localStorage.setItem('c',999);

        // window.sessionStorage.setItem('a',666);

        window.sessionStorage.setItem('a',666);
        window.sessionStorage.setItem('b',true);
        window.sessionStorage.setItem('c','abc');
        window.sessionStorage.setItem('d',{name:'zhangsan',age:18});
        window.sessionStorage.setItem('e',JSON.stringify({name:'zhangsan',age:18}));


        // var data = window.sessionStorage.getItem('a');
        // console.log(typeof data)

        // window.sessionStorage.removeItem('c');
        // window.sessionStorage.clear();
        window.location.href = './test.html'

    </script>
</body>
</html>